<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: Universal Asynchronous Receiver/Transmitter (LPUART)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__lpuart.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">Universal Asynchronous Receiver/Transmitter (LPUART)</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structlpuart__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#structlpuart__config__t">lpuart_config_t</a></td></tr>
<tr class="memdesc:structlpuart__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART configure structure.  <a href="group__lpuart.html#structlpuart__config__t">More...</a><br /></td></tr>
<tr class="separator:structlpuart__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structlpuart__transfer__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#structlpuart__transfer__t">lpuart_transfer_t</a></td></tr>
<tr class="memdesc:structlpuart__transfer__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART transfer structure.  <a href="group__lpuart.html#structlpuart__transfer__t">More...</a><br /></td></tr>
<tr class="separator:structlpuart__transfer__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:struct__lpuart__handle"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#struct__lpuart__handle">lpuart_handle_t</a></td></tr>
<tr class="memdesc:struct__lpuart__handle"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART handle structure.  <a href="group__lpuart.html#struct__lpuart__handle">More...</a><br /></td></tr>
<tr class="separator:struct__lpuart__handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga558e0c23c05831e446708a3935f36332"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga558e0c23c05831e446708a3935f36332"></a>
typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga558e0c23c05831e446708a3935f36332">lpuart_transfer_callback_t</a>) (LPUART_Type *base, lpuart_handle_t *handle, <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> status, void *userData)</td></tr>
<tr class="memdesc:ga558e0c23c05831e446708a3935f36332"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART transfer callback function. <br /></td></tr>
<tr class="separator:ga558e0c23c05831e446708a3935f36332"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga91d929761e975dda91c0cc811d253ce5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga91d929761e975dda91c0cc811d253ce5">_lpuart_status</a> { <br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5abddb317db7dfffa95856604bfac2a17f">kStatus_LPUART_TxBusy</a> = MAKE_STATUS(kStatusGroup_LPUART, 0), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5a98dfeab0a23c81f6b7f2c18acff8cc30">kStatus_LPUART_RxBusy</a> = MAKE_STATUS(kStatusGroup_LPUART, 1), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5a079c6d0957d121ce7cd95cf97487dfbb">kStatus_LPUART_TxIdle</a> = MAKE_STATUS(kStatusGroup_LPUART, 2), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5a02b8fe84bbfd8c52856b5d48865f7088">kStatus_LPUART_RxIdle</a> = MAKE_STATUS(kStatusGroup_LPUART, 3), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5abbee969cb0f7b4c49b44b10c4eb583cc">kStatus_LPUART_TxWatermarkTooLarge</a> = MAKE_STATUS(kStatusGroup_LPUART, 4), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5aca81b4d6e2e792c6d841b95ec25daad9">kStatus_LPUART_RxWatermarkTooLarge</a> = MAKE_STATUS(kStatusGroup_LPUART, 5), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5a07d5a5092ded158fe53ea4df940f8bdb">kStatus_LPUART_FlagCannotClearManually</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5af069a1997c3d25588d834ccb33dd35f4">kStatus_LPUART_Error</a> = MAKE_STATUS(kStatusGroup_LPUART, 7), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5a45a7ed684f4c31aec8999b3da68d3b5e">kStatus_LPUART_RxRingBufferOverrun</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5af8ada3eacff87751ec865b4fc584bac1">kStatus_LPUART_RxHardwareOverrun</a> = MAKE_STATUS(kStatusGroup_LPUART, 9)
<br />
 }<tr class="memdesc:ga91d929761e975dda91c0cc811d253ce5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Error codes for the LPUART driver.  <a href="group__lpuart.html#ga91d929761e975dda91c0cc811d253ce5">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga91d929761e975dda91c0cc811d253ce5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6fcd73abf900b8a17dab1f2b1f3f53c7"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga6fcd73abf900b8a17dab1f2b1f3f53c7">lpuart_parity_mode_t</a> { <br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga6fcd73abf900b8a17dab1f2b1f3f53c7a0e5bdb8fc4e1010930d05e1490a75b1a">kLPUART_ParityDisabled</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga6fcd73abf900b8a17dab1f2b1f3f53c7ac92adb3fdf11240ca5dee6c6543b6ff7">kLPUART_ParityEven</a> = 0x2U, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga6fcd73abf900b8a17dab1f2b1f3f53c7adab63856e98e0715f4ab289ac0da3575">kLPUART_ParityOdd</a> = 0x3U
<br />
 }<tr class="memdesc:ga6fcd73abf900b8a17dab1f2b1f3f53c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART parity mode.  <a href="group__lpuart.html#ga6fcd73abf900b8a17dab1f2b1f3f53c7">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga6fcd73abf900b8a17dab1f2b1f3f53c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7540d87bc3fa8a605d8da53fe08219f0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga7540d87bc3fa8a605d8da53fe08219f0">lpuart_stop_bit_count_t</a> { <br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga7540d87bc3fa8a605d8da53fe08219f0a4304f0ee73a5fabfadfc05ca1fbd3901">kLPUART_OneStopBit</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga7540d87bc3fa8a605d8da53fe08219f0a6e049e0faaf89ed2dfe493ad8f6c93d4">kLPUART_TwoStopBit</a> = 1U
<br />
 }<tr class="memdesc:ga7540d87bc3fa8a605d8da53fe08219f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART stop bit count.  <a href="group__lpuart.html#ga7540d87bc3fa8a605d8da53fe08219f0">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga7540d87bc3fa8a605d8da53fe08219f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga199a157d391291a9d003bf23954f9603"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga199a157d391291a9d003bf23954f9603">_lpuart_interrupt_enable</a> { <br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603ade355c45064ff74257d57eb42d475adb">kLPUART_LinBreakInterruptEnable</a> = (LPUART_BAUD_LBKDIE_MASK &gt;&gt; 8), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603a43750aac20f72535350c1ab4a1862a3a">kLPUART_RxActiveEdgeInterruptEnable</a> = (LPUART_BAUD_RXEDGIE_MASK &gt;&gt; 8), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603a0e8bf389f65e5f86a3063dc55b8aae1c">kLPUART_TxDataRegEmptyInterruptEnable</a> = (LPUART_CTRL_TIE_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603a0b7f783393a61cce88eab28307e9fe14">kLPUART_TransmissionCompleteInterruptEnable</a> = (LPUART_CTRL_TCIE_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603a5b4a0893c98bf79d0dad88aeb7714d22">kLPUART_RxDataRegFullInterruptEnable</a> = (LPUART_CTRL_RIE_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603af3f83c56032b14e50a682857dd7c152d">kLPUART_IdleLineInterruptEnable</a> = (LPUART_CTRL_ILIE_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603a8a29c714eaa6acab06a87314f4f29636">kLPUART_RxOverrunInterruptEnable</a> = (LPUART_CTRL_ORIE_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603ad1a35bc7e89f170a5b82cb4801b73b5e">kLPUART_NoiseErrorInterruptEnable</a> = (LPUART_CTRL_NEIE_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603a1b43ca06e0af6b0fcf4b55612363a64d">kLPUART_FramingErrorInterruptEnable</a> = (LPUART_CTRL_FEIE_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603a13c12b816605deaabcbc3e6a6db82466">kLPUART_ParityErrorInterruptEnable</a> = (LPUART_CTRL_PEIE_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603a1ec2f3da1de23b1fdc9ebc96266ce34a">kLPUART_TxFifoOverflowInterruptEnable</a> = (LPUART_FIFO_TXOFE_MASK &gt;&gt; 8), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga199a157d391291a9d003bf23954f9603a94432948fe51acd5cc1efee2b970166b">kLPUART_RxFifoUnderflowInterruptEnable</a> = (LPUART_FIFO_RXUFE_MASK &gt;&gt; 8)
<br />
 }<tr class="memdesc:ga199a157d391291a9d003bf23954f9603"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART interrupt configuration structure, default settings all disabled.  <a href="group__lpuart.html#ga199a157d391291a9d003bf23954f9603">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga199a157d391291a9d003bf23954f9603"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga24bb7ca3f894fe5ff55b9f38bec16c89"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga24bb7ca3f894fe5ff55b9f38bec16c89">_lpuart_flags</a> { <br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89aa765f8ddac00348328f64ad4222d057a">kLPUART_TxDataRegEmptyFlag</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89ae0539c4cf39d4d1e7839a4896fad2a85">kLPUART_TransmissionCompleteFlag</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a9bc679bcc20b81768f84b04e499c5a2f">kLPUART_RxDataRegFullFlag</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89acf1a40aca38878bc395f9f0b10d8225e">kLPUART_IdleLineFlag</a> = (LPUART_STAT_IDLE_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a994f5f484509133c632215a8b701f8d1">kLPUART_RxOverrunFlag</a> = (LPUART_STAT_OR_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a2198232cb9d239f937ab221bbf03259f">kLPUART_NoiseErrorFlag</a> = (LPUART_STAT_NF_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89ad1d40f89cb6aab9c12113586fda7f510">kLPUART_FramingErrorFlag</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a2f8d4c03df61bc4678b2ccf1c69eedeb">kLPUART_ParityErrorFlag</a> = (LPUART_STAT_PF_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89ae7bdab3a8c6eb966e2afc605d8b86faf">kLPUART_LinBreakFlag</a> = (LPUART_STAT_LBKDIF_MASK), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89ae89f181d8dbbf5254d6fe843e4cac6d6">kLPUART_RxActiveEdgeFlag</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a1f14711a74db1cc141b5c2627ee4c799">kLPUART_RxActiveFlag</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89add8c5e7785285e805f7066d90ef338f4">kLPUART_DataMatch1Flag</a> = LPUART_STAT_MA1F_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a71e5c8e3b81dbe575dfdb258997ed280">kLPUART_DataMatch2Flag</a> = LPUART_STAT_MA2F_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a19f4baaef2e92c9ef93c1a31baef1826">kLPUART_NoiseErrorInRxDataRegFlag</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a2b0ee032c75223a163f6a2bce1a86641">kLPUART_ParityErrorInRxDataRegFlag</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89ad7b809a6e24b93450f93840e698f3f2d">kLPUART_TxFifoEmptyFlag</a> = (LPUART_FIFO_TXEMPT_MASK &gt;&gt; 16), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a82d7e96fff053e5f4a0ead254e3ac5d5">kLPUART_RxFifoEmptyFlag</a> = (LPUART_FIFO_RXEMPT_MASK &gt;&gt; 16), 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a58890b43ef6f610690c7cfa842ce0c56">kLPUART_TxFifoOverflowFlag</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpuart.html#gga24bb7ca3f894fe5ff55b9f38bec16c89a0e38f16380ea64d5ca5080793dfbb16e">kLPUART_RxFifoUnderflowFlag</a>
<br />
 }<tr class="memdesc:ga24bb7ca3f894fe5ff55b9f38bec16c89"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART status flags.  <a href="group__lpuart.html#ga24bb7ca3f894fe5ff55b9f38bec16c89">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga24bb7ca3f894fe5ff55b9f38bec16c89"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Initialization and deinitialization</h2></td></tr>
<tr class="memitem:gae0bf80e73707feee830060ff4fbfe292"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gae0bf80e73707feee830060ff4fbfe292">LPUART_Init</a> (LPUART_Type *base, const <a class="el" href="group__lpuart.html#structlpuart__config__t">lpuart_config_t</a> *config, uint32_t srcClock_Hz)</td></tr>
<tr class="memdesc:gae0bf80e73707feee830060ff4fbfe292"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes an LPUART instance with the user configuration structure and the peripheral clock.  <a href="#gae0bf80e73707feee830060ff4fbfe292">More...</a><br /></td></tr>
<tr class="separator:gae0bf80e73707feee830060ff4fbfe292"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga303ff3b77767bafa449d96f1e8c921e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga303ff3b77767bafa449d96f1e8c921e0">LPUART_Deinit</a> (LPUART_Type *base)</td></tr>
<tr class="memdesc:ga303ff3b77767bafa449d96f1e8c921e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes a LPUART instance.  <a href="#ga303ff3b77767bafa449d96f1e8c921e0">More...</a><br /></td></tr>
<tr class="separator:ga303ff3b77767bafa449d96f1e8c921e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga95dfe3c3886692f1fe32023d59708440"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga95dfe3c3886692f1fe32023d59708440">LPUART_GetDefaultConfig</a> (<a class="el" href="group__lpuart.html#structlpuart__config__t">lpuart_config_t</a> *config)</td></tr>
<tr class="memdesc:ga95dfe3c3886692f1fe32023d59708440"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the default configuration structure.  <a href="#ga95dfe3c3886692f1fe32023d59708440">More...</a><br /></td></tr>
<tr class="separator:ga95dfe3c3886692f1fe32023d59708440"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4e374f897de11217ce02eeb138c03d12"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga4e374f897de11217ce02eeb138c03d12">LPUART_SetBaudRate</a> (LPUART_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz)</td></tr>
<tr class="memdesc:ga4e374f897de11217ce02eeb138c03d12"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the LPUART instance baudrate.  <a href="#ga4e374f897de11217ce02eeb138c03d12">More...</a><br /></td></tr>
<tr class="separator:ga4e374f897de11217ce02eeb138c03d12"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Status</h2></td></tr>
<tr class="memitem:gab83db963591b116f90daf3e24118cb09"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gab83db963591b116f90daf3e24118cb09">LPUART_GetStatusFlags</a> (LPUART_Type *base)</td></tr>
<tr class="memdesc:gab83db963591b116f90daf3e24118cb09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets LPUART status flags.  <a href="#gab83db963591b116f90daf3e24118cb09">More...</a><br /></td></tr>
<tr class="separator:gab83db963591b116f90daf3e24118cb09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac6bcdb29d31a2addb8d80d98855ba147"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gac6bcdb29d31a2addb8d80d98855ba147">LPUART_ClearStatusFlags</a> (LPUART_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gac6bcdb29d31a2addb8d80d98855ba147"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears status flags with a provided mask.  <a href="#gac6bcdb29d31a2addb8d80d98855ba147">More...</a><br /></td></tr>
<tr class="separator:gac6bcdb29d31a2addb8d80d98855ba147"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Interrupts</h2></td></tr>
<tr class="memitem:gab5998ebb0dc457f0864c84c16f83d745"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gab5998ebb0dc457f0864c84c16f83d745">LPUART_EnableInterrupts</a> (LPUART_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gab5998ebb0dc457f0864c84c16f83d745"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables LPUART interrupts according to a provided mask.  <a href="#gab5998ebb0dc457f0864c84c16f83d745">More...</a><br /></td></tr>
<tr class="separator:gab5998ebb0dc457f0864c84c16f83d745"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2540406e4a338199acddaa828829cad8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga2540406e4a338199acddaa828829cad8">LPUART_DisableInterrupts</a> (LPUART_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga2540406e4a338199acddaa828829cad8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables LPUART interrupts according to a provided mask.  <a href="#ga2540406e4a338199acddaa828829cad8">More...</a><br /></td></tr>
<tr class="separator:ga2540406e4a338199acddaa828829cad8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga172b524bae8bacc6dc95d9daf82c97b5"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga172b524bae8bacc6dc95d9daf82c97b5">LPUART_GetEnabledInterrupts</a> (LPUART_Type *base)</td></tr>
<tr class="memdesc:ga172b524bae8bacc6dc95d9daf82c97b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets enabled LPUART interrupts.  <a href="#ga172b524bae8bacc6dc95d9daf82c97b5">More...</a><br /></td></tr>
<tr class="separator:ga172b524bae8bacc6dc95d9daf82c97b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf1a247d917169fdf38b72abc8d415ea8"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gaf1a247d917169fdf38b72abc8d415ea8">LPUART_GetDataRegisterAddress</a> (LPUART_Type *base)</td></tr>
<tr class="memdesc:gaf1a247d917169fdf38b72abc8d415ea8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the LPUART data register address.  <a href="#gaf1a247d917169fdf38b72abc8d415ea8">More...</a><br /></td></tr>
<tr class="separator:gaf1a247d917169fdf38b72abc8d415ea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaaca771c26254dc78f1fc19390907dfe"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gaaaca771c26254dc78f1fc19390907dfe">LPUART_EnableTxDMA</a> (LPUART_Type *base, bool enable)</td></tr>
<tr class="memdesc:gaaaca771c26254dc78f1fc19390907dfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the LPUART transmitter DMA request.  <a href="#gaaaca771c26254dc78f1fc19390907dfe">More...</a><br /></td></tr>
<tr class="separator:gaaaca771c26254dc78f1fc19390907dfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae38de19055fca51a30c13e1cd27fb60b"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gae38de19055fca51a30c13e1cd27fb60b">LPUART_EnableRxDMA</a> (LPUART_Type *base, bool enable)</td></tr>
<tr class="memdesc:gae38de19055fca51a30c13e1cd27fb60b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the LPUART receiver DMA.  <a href="#gae38de19055fca51a30c13e1cd27fb60b">More...</a><br /></td></tr>
<tr class="separator:gae38de19055fca51a30c13e1cd27fb60b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Bus Operations</h2></td></tr>
<tr class="memitem:ga49961d4e9043ff9bd10e477add9258d7"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga49961d4e9043ff9bd10e477add9258d7">LPUART_EnableTx</a> (LPUART_Type *base, bool enable)</td></tr>
<tr class="memdesc:ga49961d4e9043ff9bd10e477add9258d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the LPUART transmitter.  <a href="#ga49961d4e9043ff9bd10e477add9258d7">More...</a><br /></td></tr>
<tr class="separator:ga49961d4e9043ff9bd10e477add9258d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaadb8a7199526555e50e65e017da4eae2"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gaadb8a7199526555e50e65e017da4eae2">LPUART_EnableRx</a> (LPUART_Type *base, bool enable)</td></tr>
<tr class="memdesc:gaadb8a7199526555e50e65e017da4eae2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the LPUART receiver.  <a href="#gaadb8a7199526555e50e65e017da4eae2">More...</a><br /></td></tr>
<tr class="separator:gaadb8a7199526555e50e65e017da4eae2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac5377aeebf4327f4ef9de295d8695cd9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gac5377aeebf4327f4ef9de295d8695cd9">LPUART_WriteBlocking</a> (LPUART_Type *base, const uint8_t *data, size_t length)</td></tr>
<tr class="memdesc:gac5377aeebf4327f4ef9de295d8695cd9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes to transmitter register using a blocking method.  <a href="#gac5377aeebf4327f4ef9de295d8695cd9">More...</a><br /></td></tr>
<tr class="separator:gac5377aeebf4327f4ef9de295d8695cd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9a9389e1c7bcce6c23e00eb77006a717"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga9a9389e1c7bcce6c23e00eb77006a717">LPUART_WriteByte</a> (LPUART_Type *base, uint8_t data)</td></tr>
<tr class="memdesc:ga9a9389e1c7bcce6c23e00eb77006a717"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes to the transmitter register.  <a href="#ga9a9389e1c7bcce6c23e00eb77006a717">More...</a><br /></td></tr>
<tr class="separator:ga9a9389e1c7bcce6c23e00eb77006a717"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf213abd4457c20519b54ceedb5a0e09c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gaf213abd4457c20519b54ceedb5a0e09c">LPUART_ReadBlocking</a> (LPUART_Type *base, uint8_t *data, size_t length)</td></tr>
<tr class="memdesc:gaf213abd4457c20519b54ceedb5a0e09c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the RX data register using a blocking method.  <a href="#gaf213abd4457c20519b54ceedb5a0e09c">More...</a><br /></td></tr>
<tr class="separator:gaf213abd4457c20519b54ceedb5a0e09c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga02013105f0aacc7062eaae59d7401d29"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga02013105f0aacc7062eaae59d7401d29">LPUART_ReadByte</a> (LPUART_Type *base)</td></tr>
<tr class="memdesc:ga02013105f0aacc7062eaae59d7401d29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the RX register.  <a href="#ga02013105f0aacc7062eaae59d7401d29">More...</a><br /></td></tr>
<tr class="separator:ga02013105f0aacc7062eaae59d7401d29"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Transactional</h2></td></tr>
<tr class="memitem:ga76eacacec4ce5d1d2e2f56d982b3c69b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga76eacacec4ce5d1d2e2f56d982b3c69b">LPUART_CreateHandle</a> (LPUART_Type *base, lpuart_handle_t *handle, <a class="el" href="group__lpuart.html#ga558e0c23c05831e446708a3935f36332">lpuart_transfer_callback_t</a> callback, void *userData)</td></tr>
<tr class="memdesc:ga76eacacec4ce5d1d2e2f56d982b3c69b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the LPUART handle.  <a href="#ga76eacacec4ce5d1d2e2f56d982b3c69b">More...</a><br /></td></tr>
<tr class="separator:ga76eacacec4ce5d1d2e2f56d982b3c69b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga165d18fc484fa65138ebeaac8c9e7345"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga165d18fc484fa65138ebeaac8c9e7345">LPUART_SendNonBlocking</a> (LPUART_Type *base, lpuart_handle_t *handle, <a class="el" href="group__lpuart.html#structlpuart__transfer__t">lpuart_transfer_t</a> *xfer)</td></tr>
<tr class="memdesc:ga165d18fc484fa65138ebeaac8c9e7345"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transmits a buffer of data using the interrupt method.  <a href="#ga165d18fc484fa65138ebeaac8c9e7345">More...</a><br /></td></tr>
<tr class="separator:ga165d18fc484fa65138ebeaac8c9e7345"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7731764ce8fe62b3079ee5f014443cb4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga7731764ce8fe62b3079ee5f014443cb4">LPUART_StartRingBuffer</a> (LPUART_Type *base, lpuart_handle_t *handle, uint8_t *ringBuffer, size_t ringBufferSize)</td></tr>
<tr class="memdesc:ga7731764ce8fe62b3079ee5f014443cb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets up the RX ring buffer.  <a href="#ga7731764ce8fe62b3079ee5f014443cb4">More...</a><br /></td></tr>
<tr class="separator:ga7731764ce8fe62b3079ee5f014443cb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga17a5373e645e81248a8c62044483cb9c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga17a5373e645e81248a8c62044483cb9c">LPUART_StopRingBuffer</a> (LPUART_Type *base, lpuart_handle_t *handle)</td></tr>
<tr class="memdesc:ga17a5373e645e81248a8c62044483cb9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abort the background transfer and uninstall the ring buffer.  <a href="#ga17a5373e645e81248a8c62044483cb9c">More...</a><br /></td></tr>
<tr class="separator:ga17a5373e645e81248a8c62044483cb9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2b132f6d96e7012255134969c03415ba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga2b132f6d96e7012255134969c03415ba">LPUART_AbortSend</a> (LPUART_Type *base, lpuart_handle_t *handle)</td></tr>
<tr class="memdesc:ga2b132f6d96e7012255134969c03415ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Aborts the interrupt-driven data transmit.  <a href="#ga2b132f6d96e7012255134969c03415ba">More...</a><br /></td></tr>
<tr class="separator:ga2b132f6d96e7012255134969c03415ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga900df6b2a75973748ae5a2b556b9366a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga900df6b2a75973748ae5a2b556b9366a">LPUART_GetSendCount</a> (LPUART_Type *base, lpuart_handle_t *handle, uint32_t *count)</td></tr>
<tr class="memdesc:ga900df6b2a75973748ae5a2b556b9366a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of bytes that have been written to LPUART TX register.  <a href="#ga900df6b2a75973748ae5a2b556b9366a">More...</a><br /></td></tr>
<tr class="separator:ga900df6b2a75973748ae5a2b556b9366a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6bd6a187e31e9179bf9151eb83b96269"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga6bd6a187e31e9179bf9151eb83b96269">LPUART_ReceiveNonBlocking</a> (LPUART_Type *base, lpuart_handle_t *handle, <a class="el" href="group__lpuart.html#structlpuart__transfer__t">lpuart_transfer_t</a> *xfer, size_t *receivedBytes)</td></tr>
<tr class="memdesc:ga6bd6a187e31e9179bf9151eb83b96269"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receives a buffer of data using the interrupt method.  <a href="#ga6bd6a187e31e9179bf9151eb83b96269">More...</a><br /></td></tr>
<tr class="separator:ga6bd6a187e31e9179bf9151eb83b96269"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga557353168b8cbdcf9f8556a04ff3d75c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga557353168b8cbdcf9f8556a04ff3d75c">LPUART_AbortReceive</a> (LPUART_Type *base, lpuart_handle_t *handle)</td></tr>
<tr class="memdesc:ga557353168b8cbdcf9f8556a04ff3d75c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Aborts the interrupt-driven data receiving.  <a href="#ga557353168b8cbdcf9f8556a04ff3d75c">More...</a><br /></td></tr>
<tr class="separator:ga557353168b8cbdcf9f8556a04ff3d75c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga606ce621b49335d23b7903dbf062d0a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga606ce621b49335d23b7903dbf062d0a8">LPUART_GetReceiveCount</a> (LPUART_Type *base, lpuart_handle_t *handle, uint32_t *count)</td></tr>
<tr class="memdesc:ga606ce621b49335d23b7903dbf062d0a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of bytes that have been received.  <a href="#ga606ce621b49335d23b7903dbf062d0a8">More...</a><br /></td></tr>
<tr class="separator:ga606ce621b49335d23b7903dbf062d0a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf6aeac12759bf75c7d6b7fe7492e4b7e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#gaf6aeac12759bf75c7d6b7fe7492e4b7e">LPUART_HandleIRQ</a> (LPUART_Type *base, lpuart_handle_t *handle)</td></tr>
<tr class="memdesc:gaf6aeac12759bf75c7d6b7fe7492e4b7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART IRQ handle function.  <a href="#gaf6aeac12759bf75c7d6b7fe7492e4b7e">More...</a><br /></td></tr>
<tr class="separator:gaf6aeac12759bf75c7d6b7fe7492e4b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga301eb5fd702468a042bd4a9e04cca470"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpuart.html#ga301eb5fd702468a042bd4a9e04cca470">LPUART_HandleErrorIRQ</a> (LPUART_Type *base, lpuart_handle_t *handle)</td></tr>
<tr class="memdesc:ga301eb5fd702468a042bd4a9e04cca470"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPUART Error IRQ handle function.  <a href="#ga301eb5fd702468a042bd4a9e04cca470">More...</a><br /></td></tr>
<tr class="separator:ga301eb5fd702468a042bd4a9e04cca470"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Usage Information</h2>
<p>The KSDK provides a peripheral driver for the Inter-Integrated Circuit (LPUART) module of Kinetis devices. </p>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structlpuart__config__t" id="structlpuart__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct lpuart_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>LPUART configure structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aa5df547b4cb95d3c959373cf6fa672b5"></a>uint32_t</td>
<td class="fieldname">
baudRate_Bps</td>
<td class="fielddoc">
<p>LPUART baud rate </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ac6fe4a8b966fb5611f77358b819671b2"></a>bool</td>
<td class="fieldname">
enableRx</td>
<td class="fielddoc">
<p>Enable RX </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a221caf5c134ec8fcee82b8505ee75731"></a>bool</td>
<td class="fieldname">
enableTx</td>
<td class="fielddoc">
<p>Enable TX </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a12a3b03bf71728c9d45a5c5c59bdcf94"></a><a class="el" href="group__lpuart.html#ga6fcd73abf900b8a17dab1f2b1f3f53c7">lpuart_parity_mode_t</a></td>
<td class="fieldname">
parityMode</td>
<td class="fielddoc">
<p>Parity mode, disabled (default), even, odd </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a6435c6f3b7d32b90ea713817d7eb1422"></a>uint8_t</td>
<td class="fieldname">
rxFifoWatermark</td>
<td class="fielddoc">
<p>RX FIFO watermark </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="af2a00ca4c845e99442ddc24743127327"></a><a class="el" href="group__lpuart.html#ga7540d87bc3fa8a605d8da53fe08219f0">lpuart_stop_bit_count_t</a></td>
<td class="fieldname">
stopBitCount</td>
<td class="fielddoc">
<p>Number of stop bits, 1 stop bit (default) or 2 stop bits </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a0fcd9277fef344389cadcf9396173e66"></a>uint8_t</td>
<td class="fieldname">
txFifoWatermark</td>
<td class="fielddoc">
<p>TX FIFO watermark </p>
</td></tr>
</table>

</div>
</div>
<a name="structlpuart__transfer__t" id="structlpuart__transfer__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct lpuart_transfer_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>LPUART transfer structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="abe222f6d3581e7920dcad5306cc906a8"></a>uint8_t *</td>
<td class="fieldname">
data</td>
<td class="fielddoc">
<p>The buffer of data to be transfer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a78f9703861dd365a513c2c5aab9f9239"></a>size_t</td>
<td class="fieldname">
dataSize</td>
<td class="fielddoc">
<p>The byte count to be transfer. </p>
</td></tr>
</table>

</div>
</div>
<a name="struct__lpuart__handle" id="struct__lpuart__handle"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct _lpuart_handle</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>LPUART handle structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a7d5bcc8b0ccdc3f03f12eb8ac65352ad"></a><a class="el" href="group__lpuart.html#ga558e0c23c05831e446708a3935f36332">lpuart_transfer_callback_t</a></td>
<td class="fieldname">
callback</td>
<td class="fielddoc">
<p>Callback function. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aa58335de5bfa8923228432b62ea9308a"></a>uint8_t *volatile</td>
<td class="fieldname">
rxData</td>
<td class="fielddoc">
<p>Address of remaining data to receive. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ae1b7c6ae1b7e7ead628afe5410fa3f31"></a>volatile size_t</td>
<td class="fieldname">
rxDataSize</td>
<td class="fielddoc">
<p>Size of the remaining data to receive. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a180fd12c1a88bb61ac4b817f4e4e6bcd"></a>size_t</td>
<td class="fieldname">
rxDataSizeAll</td>
<td class="fielddoc">
<p>Size of the data to receive. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a522d206ac2b0dde63cd3e7190853eaf2"></a>uint8_t *</td>
<td class="fieldname">
rxRingBuffer</td>
<td class="fielddoc">
<p>Start address of the receiver ring buffer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ac4f75206cf9b8009cdf64a30e05b01d8"></a>volatile uint16_t</td>
<td class="fieldname">
rxRingBufferHead</td>
<td class="fielddoc">
<p>Index for the driver to store received data into ring buffer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a3fc25566538e662d74eb1444598a8277"></a>size_t</td>
<td class="fieldname">
rxRingBufferSize</td>
<td class="fielddoc">
<p>Size of the ring buffer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a89b3f14260503bd82300f27872236474"></a>volatile uint16_t</td>
<td class="fieldname">
rxRingBufferTail</td>
<td class="fielddoc">
<p>Index for the user to get data from the ring buffer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a6f289c8f3bd5e967fb808de6da7f1c0c"></a>volatile uint8_t</td>
<td class="fieldname">
rxState</td>
<td class="fielddoc">
<p>RX transfer state </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab56d8f300582ce9d7f4a79729124739d"></a>uint8_t *volatile</td>
<td class="fieldname">
txData</td>
<td class="fielddoc">
<p>Address of remaining data to send. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a1f9d0ac47a5cdabb34988d5d811aceaf"></a>volatile size_t</td>
<td class="fieldname">
txDataSize</td>
<td class="fielddoc">
<p>Size of the remaining data to send. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a733be3042be24bb3eb6f0c6a82d28862"></a>size_t</td>
<td class="fieldname">
txDataSizeAll</td>
<td class="fielddoc">
<p>Size of the data to send out. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a4e027f3342bad321ec60b56d164eb068"></a>volatile uint8_t</td>
<td class="fieldname">
txState</td>
<td class="fielddoc">
<p>TX transfer state. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2e294dd14122c554baa0665072b4ca7a"></a>void *</td>
<td class="fieldname">
userData</td>
<td class="fielddoc">
<p>LPUART callback function parameter. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ga24bb7ca3f894fe5ff55b9f38bec16c89"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpuart.html#ga24bb7ca3f894fe5ff55b9f38bec16c89">_lpuart_flags</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPUART status flags. </p>
<p>This provides constants for the LPUART status flags for use in the LPUART functions. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89aa765f8ddac00348328f64ad4222d057a"></a>kLPUART_TxDataRegEmptyFlag&#160;</td><td class="fielddoc">
<p>Transmit data register empty flag, sets when transmit buffer is empty </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89ae0539c4cf39d4d1e7839a4896fad2a85"></a>kLPUART_TransmissionCompleteFlag&#160;</td><td class="fielddoc">
<p>Transmission complete flag, sets when transmission activity complete </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a9bc679bcc20b81768f84b04e499c5a2f"></a>kLPUART_RxDataRegFullFlag&#160;</td><td class="fielddoc">
<p>Receive data register full flag, sets when the receive data buffer is full </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89acf1a40aca38878bc395f9f0b10d8225e"></a>kLPUART_IdleLineFlag&#160;</td><td class="fielddoc">
<p>Idle line detect flag, sets when idle line detected </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a994f5f484509133c632215a8b701f8d1"></a>kLPUART_RxOverrunFlag&#160;</td><td class="fielddoc">
<p>Receive Overrun, sets when new data is received before data is read from receive register </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a2198232cb9d239f937ab221bbf03259f"></a>kLPUART_NoiseErrorFlag&#160;</td><td class="fielddoc">
<p>Receive takes 3 samples of each received bit. If any of these samples differ, noise flag sets </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89ad1d40f89cb6aab9c12113586fda7f510"></a>kLPUART_FramingErrorFlag&#160;</td><td class="fielddoc">
<p>Frame error flag, sets if logic 0 was detected where stop bit expected </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a2f8d4c03df61bc4678b2ccf1c69eedeb"></a>kLPUART_ParityErrorFlag&#160;</td><td class="fielddoc">
<p>If parity enabled, sets upon parity error detection </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89ae7bdab3a8c6eb966e2afc605d8b86faf"></a>kLPUART_LinBreakFlag&#160;</td><td class="fielddoc">
<p>LIN break detect interrupt flag, sets when LIN break char detected and LIN circuit enabled </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89ae89f181d8dbbf5254d6fe843e4cac6d6"></a>kLPUART_RxActiveEdgeFlag&#160;</td><td class="fielddoc">
<p>Receive pin active edge interrupt flag, sets when active edge detected </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a1f14711a74db1cc141b5c2627ee4c799"></a>kLPUART_RxActiveFlag&#160;</td><td class="fielddoc">
<p>Receiver Active Flag (RAF), sets at beginning of valid start bit </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89add8c5e7785285e805f7066d90ef338f4"></a>kLPUART_DataMatch1Flag&#160;</td><td class="fielddoc">
<p>The next character to be read from LPUART_DATA matches MA1 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a71e5c8e3b81dbe575dfdb258997ed280"></a>kLPUART_DataMatch2Flag&#160;</td><td class="fielddoc">
<p>The next character to be read from LPUART_DATA matches MA2 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a19f4baaef2e92c9ef93c1a31baef1826"></a>kLPUART_NoiseErrorInRxDataRegFlag&#160;</td><td class="fielddoc">
<p>NOISY bit, sets if noise detected in current data word </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a2b0ee032c75223a163f6a2bce1a86641"></a>kLPUART_ParityErrorInRxDataRegFlag&#160;</td><td class="fielddoc">
<p>PARITYE bit, sets if noise detected in current data word </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89ad7b809a6e24b93450f93840e698f3f2d"></a>kLPUART_TxFifoEmptyFlag&#160;</td><td class="fielddoc">
<p>TXEMPT bit, sets if transmit buffer is empty </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a82d7e96fff053e5f4a0ead254e3ac5d5"></a>kLPUART_RxFifoEmptyFlag&#160;</td><td class="fielddoc">
<p>RXEMPT bit, sets if receive buffer is empty </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a58890b43ef6f610690c7cfa842ce0c56"></a>kLPUART_TxFifoOverflowFlag&#160;</td><td class="fielddoc">
<p>TXOF bit, sets if transmit buffer overflow occurred </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga24bb7ca3f894fe5ff55b9f38bec16c89a0e38f16380ea64d5ca5080793dfbb16e"></a>kLPUART_RxFifoUnderflowFlag&#160;</td><td class="fielddoc">
<p>RXUF bit, sets if receive buffer underflow occurred </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga199a157d391291a9d003bf23954f9603"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpuart.html#ga199a157d391291a9d003bf23954f9603">_lpuart_interrupt_enable</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPUART interrupt configuration structure, default settings all disabled. </p>
<p>This structure contains the settings for all LPUART interrupt configurations. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603ade355c45064ff74257d57eb42d475adb"></a>kLPUART_LinBreakInterruptEnable&#160;</td><td class="fielddoc">
<p>LIN break detect. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603a43750aac20f72535350c1ab4a1862a3a"></a>kLPUART_RxActiveEdgeInterruptEnable&#160;</td><td class="fielddoc">
<p>Receive Active Edge. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603a0e8bf389f65e5f86a3063dc55b8aae1c"></a>kLPUART_TxDataRegEmptyInterruptEnable&#160;</td><td class="fielddoc">
<p>Transmit data register empty. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603a0b7f783393a61cce88eab28307e9fe14"></a>kLPUART_TransmissionCompleteInterruptEnable&#160;</td><td class="fielddoc">
<p>Transmission complete. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603a5b4a0893c98bf79d0dad88aeb7714d22"></a>kLPUART_RxDataRegFullInterruptEnable&#160;</td><td class="fielddoc">
<p>Receiver data register full. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603af3f83c56032b14e50a682857dd7c152d"></a>kLPUART_IdleLineInterruptEnable&#160;</td><td class="fielddoc">
<p>Idle line. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603a8a29c714eaa6acab06a87314f4f29636"></a>kLPUART_RxOverrunInterruptEnable&#160;</td><td class="fielddoc">
<p>Receiver Overrun. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603ad1a35bc7e89f170a5b82cb4801b73b5e"></a>kLPUART_NoiseErrorInterruptEnable&#160;</td><td class="fielddoc">
<p>Noise error flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603a1b43ca06e0af6b0fcf4b55612363a64d"></a>kLPUART_FramingErrorInterruptEnable&#160;</td><td class="fielddoc">
<p>Framing error flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603a13c12b816605deaabcbc3e6a6db82466"></a>kLPUART_ParityErrorInterruptEnable&#160;</td><td class="fielddoc">
<p>Parity error flag. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603a1ec2f3da1de23b1fdc9ebc96266ce34a"></a>kLPUART_TxFifoOverflowInterruptEnable&#160;</td><td class="fielddoc">
<p>Transmit FIFO Overflow. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga199a157d391291a9d003bf23954f9603a94432948fe51acd5cc1efee2b970166b"></a>kLPUART_RxFifoUnderflowInterruptEnable&#160;</td><td class="fielddoc">
<p>Receive FIFO Underflow. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga91d929761e975dda91c0cc811d253ce5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpuart.html#ga91d929761e975dda91c0cc811d253ce5">_lpuart_status</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Error codes for the LPUART driver. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5abddb317db7dfffa95856604bfac2a17f"></a>kStatus_LPUART_TxBusy&#160;</td><td class="fielddoc">
<p>TX busy </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5a98dfeab0a23c81f6b7f2c18acff8cc30"></a>kStatus_LPUART_RxBusy&#160;</td><td class="fielddoc">
<p>RX busy </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5a079c6d0957d121ce7cd95cf97487dfbb"></a>kStatus_LPUART_TxIdle&#160;</td><td class="fielddoc">
<p>LPUART transmitter is idle. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5a02b8fe84bbfd8c52856b5d48865f7088"></a>kStatus_LPUART_RxIdle&#160;</td><td class="fielddoc">
<p>LPUART receiver is idle. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5abbee969cb0f7b4c49b44b10c4eb583cc"></a>kStatus_LPUART_TxWatermarkTooLarge&#160;</td><td class="fielddoc">
<p>TX FIFO watermark too large </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5aca81b4d6e2e792c6d841b95ec25daad9"></a>kStatus_LPUART_RxWatermarkTooLarge&#160;</td><td class="fielddoc">
<p>RX FIFO watermark too large </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5a07d5a5092ded158fe53ea4df940f8bdb"></a>kStatus_LPUART_FlagCannotClearManually&#160;</td><td class="fielddoc">
<p>Some flag can not manually clear </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5af069a1997c3d25588d834ccb33dd35f4"></a>kStatus_LPUART_Error&#160;</td><td class="fielddoc">
<p>Error happens on LPUART. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5a45a7ed684f4c31aec8999b3da68d3b5e"></a>kStatus_LPUART_RxRingBufferOverrun&#160;</td><td class="fielddoc">
<p>LPUART RX software ring buffer overrun. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga91d929761e975dda91c0cc811d253ce5af8ada3eacff87751ec865b4fc584bac1"></a>kStatus_LPUART_RxHardwareOverrun&#160;</td><td class="fielddoc">
<p>LPUART RX receiver overrun. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga6fcd73abf900b8a17dab1f2b1f3f53c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpuart.html#ga6fcd73abf900b8a17dab1f2b1f3f53c7">lpuart_parity_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPUART parity mode. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga6fcd73abf900b8a17dab1f2b1f3f53c7a0e5bdb8fc4e1010930d05e1490a75b1a"></a>kLPUART_ParityDisabled&#160;</td><td class="fielddoc">
<p>Parity disabled </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga6fcd73abf900b8a17dab1f2b1f3f53c7ac92adb3fdf11240ca5dee6c6543b6ff7"></a>kLPUART_ParityEven&#160;</td><td class="fielddoc">
<p>Parity enabled, type even, bit setting: PE|PT = 10 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga6fcd73abf900b8a17dab1f2b1f3f53c7adab63856e98e0715f4ab289ac0da3575"></a>kLPUART_ParityOdd&#160;</td><td class="fielddoc">
<p>Parity enabled, type odd, bit setting: PE|PT = 11 </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga7540d87bc3fa8a605d8da53fe08219f0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpuart.html#ga7540d87bc3fa8a605d8da53fe08219f0">lpuart_stop_bit_count_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPUART stop bit count. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga7540d87bc3fa8a605d8da53fe08219f0a4304f0ee73a5fabfadfc05ca1fbd3901"></a>kLPUART_OneStopBit&#160;</td><td class="fielddoc">
<p>One stop bit </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga7540d87bc3fa8a605d8da53fe08219f0a6e049e0faaf89ed2dfe493ad8f6c93d4"></a>kLPUART_TwoStopBit&#160;</td><td class="fielddoc">
<p>Two stop bits </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga557353168b8cbdcf9f8556a04ff3d75c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_AbortReceive </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Aborts the interrupt-driven data receiving. </p>
<p>This function aborts the interrupt-driven data receiving. The user can get the remainBytes to find out how many bytes not received yet.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga2b132f6d96e7012255134969c03415ba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_AbortSend </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Aborts the interrupt-driven data transmit. </p>
<p>This function aborts the interrupt driven data sending. The user can get the remainBtyes to find out how many bytes are still not sent out.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac6bcdb29d31a2addb8d80d98855ba147"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPUART_ClearStatusFlags </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears status flags with a provided mask. </p>
<p>This function clears LPUART status flags with a provided mask. Automatically cleared flags can't be cleared by this function. Flags that can only cleared or set by hardware are: kLPUART_TxDataRegEmptyFlag, kLPUART_TransmissionCompleteFlag, kLPUART_RxDataRegFullFlag, kLPUART_RxActiveFlag, kLPUART_NoiseErrorInRxDataRegFlag, kLPUART_ParityErrorInRxDataRegFlag, kLPUART_TxFifoEmptyFlag,kLPUART_RxFifoEmptyFlag</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>the status flags to be cleared. The user can use the enumerators in the _lpuart_status_flag_t to do the OR operation and get the mask. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 succeed, others failed. </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_LPUART_FlagCannotClearManually</td><td>The flag can't be cleared by this function but it is cleared automatically by hardware. </td></tr>
    <tr><td class="paramname">kStatus_Success</td><td>Status in the mask are cleared. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga76eacacec4ce5d1d2e2f56d982b3c69b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_CreateHandle </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__lpuart.html#ga558e0c23c05831e446708a3935f36332">lpuart_transfer_callback_t</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>userData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the LPUART handle. </p>
<p>This function initializes the LPUART handle, which can be used for other LPUART transactional APIs. Usually, for a specified LPUART instance, call this API once to get the initialized handle.</p>
<p>The LPUART driver supports the "background" receiving, which means that user can set up an RX ring buffer optionally. Data received is stored into the ring buffer even when the user doesn't call the <a class="el" href="group__lpuart.html#ga6bd6a187e31e9179bf9151eb83b96269" title="Receives a buffer of data using the interrupt method. ">LPUART_ReceiveNonBlocking()</a> API. If there is already data received in the ring buffer, the user can get the received data from the ring buffer directly. The ring buffer is disabled if passing NULL as <code>ringBuffer</code>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
    <tr><td class="paramname">callback</td><td>Callback function. </td></tr>
    <tr><td class="paramname">userData</td><td>User data. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga303ff3b77767bafa449d96f1e8c921e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_Deinit </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deinitializes a LPUART instance. </p>
<p>This function waits for transmit to complete, disables TX and RX, and disables the LPUART clock.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga2540406e4a338199acddaa828829cad8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_DisableInterrupts </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables LPUART interrupts according to a provided mask. </p>
<p>This function disables the LPUART interrupts according to a provided mask. The mask is a logical OR of enumeration members. See <a class="el" href="group__lpuart.html#ga199a157d391291a9d003bf23954f9603">_lpuart_interrupt_enable</a>. This example shows how to disable the TX empty interrupt and RX full interrupt: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;LPUART_DisableInterrupts(LPUART1,kLPUART_TxDataRegEmptyInterruptEnable | kLPUART_RxDataRegFullInterruptEnable);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to disable. Logical OR of <a class="el" href="group__lpuart.html#ga199a157d391291a9d003bf23954f9603">_lpuart_interrupt_enable</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gab5998ebb0dc457f0864c84c16f83d745"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_EnableInterrupts </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables LPUART interrupts according to a provided mask. </p>
<p>This function enables the LPUART interrupts according to a provided mask. The mask is a logical OR of enumeration members. See the <a class="el" href="group__lpuart.html#ga199a157d391291a9d003bf23954f9603">_lpuart_interrupt_enable</a>. This examples shows how to enable TX empty interrupt and RX full interrupt: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;LPUART_EnableInterrupts(LPUART1,kLPUART_TxDataRegEmptyInterruptEnable | kLPUART_RxDataRegFullInterruptEnable);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to enable. Logical OR of <a class="el" href="group__uart.html#ga700f3cd8e3800273a1591307cab6311c">_uart_interrupt_enable</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaadb8a7199526555e50e65e017da4eae2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPUART_EnableRx </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables or disables the LPUART receiver. </p>
<p>This function enables or disables the LPUART receiver.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">enable</td><td>True to enable, false to disable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gae38de19055fca51a30c13e1cd27fb60b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPUART_EnableRxDMA </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables or disables the LPUART receiver DMA. </p>
<p>This function enables or disables the receiver data register full flag, STAT[RDRF], to generate DMA requests.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">enable</td><td>True to enable, false to disable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga49961d4e9043ff9bd10e477add9258d7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPUART_EnableTx </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables or disables the LPUART transmitter. </p>
<p>This function enables or disables the LPUART transmitter.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">enable</td><td>True to enable, false to disable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaaaca771c26254dc78f1fc19390907dfe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPUART_EnableTxDMA </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables or disables the LPUART transmitter DMA request. </p>
<p>This function enables or disables the transmit data register empty flag, STAT[TDRE], to generate DMA requests.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">enable</td><td>True to enable, false to disable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf1a247d917169fdf38b72abc8d415ea8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t LPUART_GetDataRegisterAddress </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the LPUART data register address. </p>
<p>This function returns the LPUART data register address, which is mainly used by the DMA/eDMA.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>LPUART data register addresses which are used both by the transmitter and receiver. </dd></dl>

</div>
</div>
<a class="anchor" id="ga95dfe3c3886692f1fe32023d59708440"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_GetDefaultConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__lpuart.html#structlpuart__config__t">lpuart_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the default configuration structure. </p>
<p>This function initializes the LPUART configuration structure to a default value. The default values are: lpuartConfig-&gt;baudRate_Bps = 115200U; lpuartConfig-&gt;parityMode = kLPUART_ParityDisabled; lpuartConfig-&gt;stopBitCount = kLPUART_OneStopBit; lpuartConfig-&gt;txFifoWatermark = 0; lpuartConfig-&gt;rxFifoWatermark = 1; lpuartConfig-&gt;enableTx = false; lpuartConfig-&gt;enableRx = false;</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Pointer to a configuration structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga172b524bae8bacc6dc95d9daf82c97b5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t LPUART_GetEnabledInterrupts </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets enabled LPUART interrupts. </p>
<p>This function gets the enabled LPUART interrupts. The enabled interrupts are returned as the logical OR value of the enumerators <a class="el" href="group__lpuart.html#ga199a157d391291a9d003bf23954f9603">_lpuart_interrupt_enable</a>. To check a specific interrupt enable status, compare the return value with enumerators in <a class="el" href="group__lpuart.html#ga199a157d391291a9d003bf23954f9603">_lpuart_interrupt_enable</a>. For example, to check whether the TX empty interrupt is enabled: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;uint32_t enabledInterrupts = LPUART_GetEnabledInterrupts(LPUART1);</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;if (kLPUART_TxDataRegEmptyInterruptEnable &amp; enabledInterrupts)</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;{</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;    ...</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;}</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>LPUART interrupt flags which are logical OR of the enumerators in <a class="el" href="group__lpuart.html#ga199a157d391291a9d003bf23954f9603">_lpuart_interrupt_enable</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ga606ce621b49335d23b7903dbf062d0a8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPUART_GetReceiveCount </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the number of bytes that have been received. </p>
<p>This function gets the number of bytes that have been received.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
    <tr><td class="paramname">count</td><td>Receive bytes count. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_NoTransferInProgress</td><td>No receive in progress. </td></tr>
    <tr><td class="paramname">kStatus_InvalidArgument</td><td>Parameter is invalid. </td></tr>
    <tr><td class="paramname">kStatus_Success</td><td>Get successfully through the parameter <code>count</code>; </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga900df6b2a75973748ae5a2b556b9366a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPUART_GetSendCount </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the number of bytes that have been written to LPUART TX register. </p>
<p>This function gets the number of bytes that have been written to LPUART TX register by interrupt method.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
    <tr><td class="paramname">count</td><td>Send bytes count. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_NoTransferInProgress</td><td>No send in progress. </td></tr>
    <tr><td class="paramname">kStatus_InvalidArgument</td><td>Parameter is invalid. </td></tr>
    <tr><td class="paramname">kStatus_Success</td><td>Get successfully through the parameter <code>count</code>; </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gab83db963591b116f90daf3e24118cb09"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t LPUART_GetStatusFlags </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets LPUART status flags. </p>
<p>This function gets all LPUART status flags. The flags are returned as the logical OR value of the enumerators <a class="el" href="group__lpuart.html#ga24bb7ca3f894fe5ff55b9f38bec16c89">_lpuart_flags</a>. To check for a specific status, compare the return value with enumerators in the <a class="el" href="group__lpuart.html#ga24bb7ca3f894fe5ff55b9f38bec16c89">_lpuart_flags</a>. For example, to check whether the TX is empty: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;if (kLPUART_TxDataRegEmptyFlag &amp; LPUART_GetStatusFlags(LPUART1))</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;{</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;    ...</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;}</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>LPUART status flags which are ORed by the enumerators in the _lpuart_flags. </dd></dl>

</div>
</div>
<a class="anchor" id="ga301eb5fd702468a042bd4a9e04cca470"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_HandleErrorIRQ </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPUART Error IRQ handle function. </p>
<p>This function handles the LPUART error IRQ request.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf6aeac12759bf75c7d6b7fe7492e4b7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_HandleIRQ </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPUART IRQ handle function. </p>
<p>This function handles the LPUART transmit and receive IRQ request.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gae0bf80e73707feee830060ff4fbfe292"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_Init </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__lpuart.html#structlpuart__config__t">lpuart_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>srcClock_Hz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes an LPUART instance with the user configuration structure and the peripheral clock. </p>
<p>This function configures the LPUART module with user-defined settings. Call the <a class="el" href="group__lpuart.html#ga95dfe3c3886692f1fe32023d59708440" title="Gets the default configuration structure. ">LPUART_GetDefaultConfig()</a> function to configure the configuration structure and get the default configuration. The example below shows how to use this API to configure the LPUART. </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;lpuart_config_t lpuartConfig;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;lpuartConfig.baudRate_Bps = 115200U;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;lpuartConfig.parityMode = kLPUART_ParityDisabled;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;lpuartConfig.stopBitCount = kLPUART_OneStopBit;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;lpuartConfig.txFifoWatermark = 0;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;lpuartConfig.rxFifoWatermark = 1;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;LPUART_Init(LPUART1, &amp;lpuartConfig, 20000000U);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">config</td><td>Pointer to a user-defined configuration structure. </td></tr>
    <tr><td class="paramname">srcClock_Hz</td><td>LPUART clock source frequency in HZ. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf213abd4457c20519b54ceedb5a0e09c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_ReadBlocking </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the RX data register using a blocking method. </p>
<p>This function polls the RX register, waits for the RX register full or RX FIFO has data then reads data from the TX register.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">data</td><td>Start address of the buffer to store the received data. </td></tr>
    <tr><td class="paramname">length</td><td>Size of the buffer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga02013105f0aacc7062eaae59d7401d29"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint8_t LPUART_ReadByte </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reads the RX register. </p>
<p>This function reads data from the TX register directly. The upper layer must ensure that the RX register is full or that the TX FIFO has data before calling this function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Data read from data register. </dd></dl>

</div>
</div>
<a class="anchor" id="ga6bd6a187e31e9179bf9151eb83b96269"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPUART_ReceiveNonBlocking </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__lpuart.html#structlpuart__transfer__t">lpuart_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>xfer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>receivedBytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Receives a buffer of data using the interrupt method. </p>
<p>This function receives data using an interrupt method. This is a non-blocking function which returns without waiting to ensure that all data are received. If the RX ring buffer is used and not empty, the data in the ring buffer is copied and the parameter <code>receivedBytes</code> shows how many bytes are copied from the ring buffer. After copying, if the data in the ring buffer is not enough for read, the receive request is saved by the LPUART driver. When the new data arrives, the receive request is serviced first. When all data is received, the LPUART driver notifies the upper layer through a callback function and passes a status parameter <a class="el" href="group__uart.html#ggacef40dc8e8ac174bfe40ebcbc980f84bae0877b14627ed2aa8ddb2bf5b033f407">kStatus_UART_RxIdle</a>. For example, the upper layer needs 10 bytes but there are only 5 bytes in ring buffer. The 5 bytes are copied to xfer-&gt;data, which returns with the parameter <code>receivedBytes</code> set to 5. For the remaining 5 bytes, the newly arrived data is saved from xfer-&gt;data[5]. When 5 bytes are received, the LPUART driver notifies the upper layer. If the RX ring buffer is not enabled, this function enables the RX and RX interrupt to receive data to xfer-&gt;data. When all data is received, the upper layer is notified.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
    <tr><td class="paramname">xfer</td><td>LPUART transfer structure, refer to <a class="el" href="group__uart.html#structuart__transfer__t" title="UART transfer structure. ">uart_transfer_t</a>. </td></tr>
    <tr><td class="paramname">receivedBytes</td><td>Bytes received from the ring buffer directly. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>Successfully queue the transfer into the transmit queue. </td></tr>
    <tr><td class="paramname">kStatus_LPUART_RxBusy</td><td>Previous receive request is not finished. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga165d18fc484fa65138ebeaac8c9e7345"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPUART_SendNonBlocking </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__lpuart.html#structlpuart__transfer__t">lpuart_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>xfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transmits a buffer of data using the interrupt method. </p>
<p>This function send data using an interrupt method. This is a non-blocking function, which returns directly without waiting for all data written to the transmitter register. When all data is written to the TX register in the ISR, the LPUART driver calls the callback function and passes the <a class="el" href="group__lpuart.html#gga91d929761e975dda91c0cc811d253ce5a079c6d0957d121ce7cd95cf97487dfbb">kStatus_LPUART_TxIdle</a> as status parameter.</p>
<dl class="section note"><dt>Note</dt><dd>The kStatus_LPUART_TxIdle is passed to the upper layer when all data are written to the TX register. However, there is no check to ensure that all the data sent out. Before disabling the TX, check the kLPUART_TransmissionCompleteFlag to ensure that the transmit is finished.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
    <tr><td class="paramname">xfer</td><td>LPUART transfer structure, refer to <a class="el" href="group__lpuart.html#structlpuart__transfer__t" title="LPUART transfer structure. ">lpuart_transfer_t</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>Successfully start the data transmission. </td></tr>
    <tr><td class="paramname">kStatus_LPUART_TxBusy</td><td>Previous transmission still not finished, data not all written to the TX register. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga4e374f897de11217ce02eeb138c03d12"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_SetBaudRate </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>baudRate_Bps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>srcClock_Hz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the LPUART instance baudrate. </p>
<p>This function configures the LPUART module baudrate. This function is used to update the LPUART module baudrate after the LPUART module is initialized by the LPUART_Init. </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;LPUART_SetBaudRate(LPUART1, 115200U, 20000000U);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">baudRate_Bps</td><td>LPUART baudrate to be set. </td></tr>
    <tr><td class="paramname">srcClock_Hz</td><td>LPUART clock source frequency in HZ. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga7731764ce8fe62b3079ee5f014443cb4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_StartRingBuffer </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>ringBuffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>ringBufferSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets up the RX ring buffer. </p>
<p>This function sets up the RX ring buffer to a specific UART handle.</p>
<p>When the RX ring buffer is used, data received is stored into the ring buffer even when the user doesn't call the <a class="el" href="group__uart.html#ga5dfacd59d3fb1a18c06c6bf1519cbc9c" title="Receives a buffer of data using an interrupt method. ">UART_ReceiveNonBlocking()</a> API. If there is already data received in the ring buffer, the user can get the received data from the ring buffer directly.</p>
<dl class="section note"><dt>Note</dt><dd>When using RX ring buffer, one byte is reserved for internal use. In other words, if <code>ringBufferSize</code> is 32, then only 31 bytes are used for saving data.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
    <tr><td class="paramname">ringBuffer</td><td>Start address of ring buffer for background receiving. Pass NULL to disable the ring buffer. </td></tr>
    <tr><td class="paramname">ringBufferSize</td><td>size of the ring buffer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga17a5373e645e81248a8c62044483cb9c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_StopRingBuffer </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpuart_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Abort the background transfer and uninstall the ring buffer. </p>
<p>This function aborts the background transfer and uninstalls the ring buffer.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>LPUART handle pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac5377aeebf4327f4ef9de295d8695cd9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPUART_WriteBlocking </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes to transmitter register using a blocking method. </p>
<p>This function polls the transmitter register, waits for the register to be empty or for TX FIFO to have room and then writes data to the transmitter buffer.</p>
<dl class="section note"><dt>Note</dt><dd>This function does not check whether all data has been sent out to the bus. Before disabling the transmitter, check the kLPUART_TransmissionCompleteFlag to ensure that the transmit is finished.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">data</td><td>Start address of the data to write. </td></tr>
    <tr><td class="paramname">length</td><td>Size of the data to write. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga9a9389e1c7bcce6c23e00eb77006a717"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPUART_WriteByte </td>
          <td>(</td>
          <td class="paramtype">LPUART_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Writes to the transmitter register. </p>
<p>This function writes data to the transmitter register directly. The upper layer must ensure that the TX register is empty or that the TX FIFO has room before calling this function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>LPUART peripheral base address. </td></tr>
    <tr><td class="paramname">data</td><td>Data write to the TX register. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
